/*
 * class_loader.h
 *
 *  Created on: 2011-10-17
 *      modified by mattwang
 */

#ifndef __CLASS_LOADER__
#define __CLASS_LOADER__

#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <string>

using namespace std;

struct SparseVectorData {
	int id;
	double value;
};

typedef std::vector<SparseVectorData> SampleVector;

class ClassLoader {
public:
	std::vector<double> data_weight;
	std::vector<int> data_class;
	std::vector<SampleVector> data_matrix;

	std::vector<double> test_weight;
	std::vector<int> test_class;
	std::vector<SampleVector> test_matrix;

	int data_count;
	int test_count;

	int max_class_id;
	int max_feature_id;

public:
	ClassLoader();
	~ClassLoader();
	bool Load(string filename);
};

#endif // __CLICK_PV_LOADER__
